#pragma once

#include <QColor>

// 常量
class Const {
    // 格
    public: static const int GRID_SIZE = 40;                                                    // 尺寸

    // 游戏区域
    public: static const int GAME_BOARD_POINT_COUNT_H = 15;                                     // 横向点数
    public: static const int GAME_BOARD_POINT_COUNT_V = 15;                                     // 纵向点数
    public: static const int GAME_BOARD_WIDTH = (GAME_BOARD_POINT_COUNT_H + 1) * GRID_SIZE;     // 宽度
    public: static const int GAME_BOARD_HEIGHT = (GAME_BOARD_POINT_COUNT_V + 1) * GRID_SIZE;    // 高度
    public: static QColor GAME_BOARD_COLOR;                                                     // 背景色
    public: static QColor GAME_BOARD_BORDER_COLOR;                                              // 线颜色

    // 胜利数
    public: static const int WIN_NUMBER = 5;                                                    // 达到此数胜利

    // 棋子
    public: static const int PIECE_RADIUS = GRID_SIZE * 4 / 10;                                 // 半径

    // 其它
    public: static const int SERVER_CONNECT_TIME_OUT = 3000;                                    // 连接服务器超时值，单位毫秒
};
